using UnityEngine;
using System.Collections;

public class CreditsScript : MonoBehaviour {
    public GUISkin skinCredits;
    public GUITexture backMenu;
    public GUITexture nanoFace;
    public GUITexture nanoLinkedIn;
    public GUITexture pauloFace;
    public GUITexture pauloLinkedIn;
    public GUITexture viniFace;
    public GUITexture viniLinkedIn;

    // Use this for initialization
    void Start()
    {

    }

    void OnGUI()
    {
        GUI.skin = skinCredits;/*
        Rect backMenuButton = new Rect((backMenu.transform.position.x * Screen.width) - ((backMenu.transform.lossyScale.x * Screen.width) / 2),
                                            Screen.height - (backMenu.transform.position.y * Screen.height) - ((backMenu.transform.lossyScale.y * Screen.height) / 2),
                                            backMenu.transform.lossyScale.x * Screen.width,
                                            backMenu.transform.lossyScale.y * Screen.height);
        if (GUI.Button(backMenuButton, ""))
        {
            Application.LoadLevel("menu");
        }

        Rect nanoFaceButton = new Rect((nanoFace.transform.position.x * Screen.width) - ((nanoFace.transform.lossyScale.x * Screen.width) / 2),
                                    Screen.height - (nanoFace.transform.position.y * Screen.height) - ((nanoFace.transform.lossyScale.y * Screen.height) / 2),
                                    nanoFace.transform.lossyScale.x * Screen.width,
                                    nanoFace.transform.lossyScale.y * Screen.height);
        if (GUI.Button(nanoFaceButton, ""))
        {
            Application.OpenURL("www.facebook.com/nanosili");
        }
        Rect nanoLinkedInButton = new Rect((nanoLinkedIn.transform.position.x * Screen.width) - ((nanoLinkedIn.transform.lossyScale.x * Screen.width) / 2),
                                    Screen.height - (nanoLinkedIn.transform.position.y * Screen.height) - ((nanoLinkedIn.transform.lossyScale.y * Screen.height) / 2),
                                    nanoLinkedIn.transform.lossyScale.x * Screen.width,
                                    nanoLinkedIn.transform.lossyScale.y * Screen.height);
        if (GUI.Button(nanoLinkedInButton, ""))
        {
            Application.OpenURL("http://br.linkedin.com/pub/evandro-lima/7b/376/886/");
        }
        Rect pauloFaceButton = new Rect((pauloFace.transform.position.x * Screen.width) - ((pauloFace.transform.lossyScale.x * Screen.width) / 2),
                                    Screen.height - (pauloFace.transform.position.y * Screen.height) - ((pauloFace.transform.lossyScale.y * Screen.height) / 2),
                                    pauloFace.transform.lossyScale.x * Screen.width,
                                    pauloFace.transform.lossyScale.y * Screen.height);
        if (GUI.Button(pauloFaceButton, ""))
        {
            Application.OpenURL("www.facebook.com/PauloRenanMelo");
        }
        Rect pauloLinkedInButton = new Rect((pauloLinkedIn.transform.position.x * Screen.width) - ((pauloLinkedIn.transform.lossyScale.x * Screen.width) / 2),
                                    Screen.height - (pauloLinkedIn.transform.position.y * Screen.height) - ((pauloLinkedIn.transform.lossyScale.y * Screen.height) / 2),
                                    pauloLinkedIn.transform.lossyScale.x * Screen.width,
                                    pauloLinkedIn.transform.lossyScale.y * Screen.height);
        if (GUI.Button(pauloLinkedInButton, ""))
        {
            Application.OpenURL("http://br.linkedin.com/pub/paulo-renan-melo/23/4bb/a97/");
        }
        Rect viniFaceButton = new Rect((viniFace.transform.position.x * Screen.width) - ((viniFace.transform.lossyScale.x * Screen.width) / 2),
                                    Screen.height - (viniFace.transform.position.y * Screen.height) - ((viniFace.transform.lossyScale.y * Screen.height) / 2),
                                    viniFace.transform.lossyScale.x * Screen.width,
                                    viniFace.transform.lossyScale.y * Screen.height);
        if (GUI.Button(viniFaceButton, ""))
        {
            Application.OpenURL("www.facebook.com/vinicius.c.prates");
        }
        Rect viniLinkedInButton = new Rect((viniLinkedIn.transform.position.x * Screen.width) - ((viniLinkedIn.transform.lossyScale.x * Screen.width) / 2),
                                    Screen.height - (viniLinkedIn.transform.position.y * Screen.height) - ((viniLinkedIn.transform.lossyScale.y * Screen.height) / 2),
                                    viniLinkedIn.transform.lossyScale.x * Screen.width,
                                    viniLinkedIn.transform.lossyScale.y * Screen.height);
        if (GUI.Button(viniLinkedInButton, ""))
        {
            Application.OpenURL("www.facebook.com/vinicius.c.prates");
        }*/
    }
}
